package com.dunshan.encry;


import org.springframework.util.DigestUtils;

/**
 * @author liwen
 * @program: dunshan-pef
 * @description: 加密处理
 * @date 2022-01-24 11:03:04
 */
public class EncryptionController {


    public static String pwd(String password, String salt) {
        String newPassword = DigestUtils.md5DigestAsHex((password + salt).getBytes());
        return newPassword;
    }


}
